import turtle

# 设置画布大小
turt_screen = turtle.Screen()
turt_screen.setup(width=600, height=600)

# 创建一个画笔
pen = turtle.Turtle()

# 画正六边形
for _ in range(6):
    pen.forward(100)  # 向前走100单位长度
    pen.right(60)     # 右转60度

# 结束绘制
turtle.done()